import request from '@/utils/request'

export const getAllChannelListAPI = () => {
  return request({
    url: '/v1_0/channels'
  })
}

export const getArticleListAPI = ({
  status = null,
  channel_id = null,
  begin_pubdate = null,
  end_pubdate = null,
  page = 1, per_page = 10
}) => {
  return request({
    url: '/v1_0/mp/articles',

    params: {
      status: status,
      channel_id,
      begin_pubdate,
      end_pubdate,
      page,
      per_page
    }
  })
}
export const delArticleAPI = ({ artId }) => {
  return request({
    url: `/v1_0/mp/articles/${artId}`,
    method: 'DELETE'

  })
}
